package com.ogj.shiro.service;

import com.ogj.shiro.entity.User;
import com.ogj.shiro.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public User getUserPasswordByUsername(String username){
        return userMapper.getUserByUsername(username);
    }
    public int getUserCountByUsername(String username){
        return userMapper.getCountByUsername(username);
    }

    public User getUserById(Integer id){
        return userMapper.getUserById(id);
    }


}
